﻿using MiniErp.Model.Entities.AssetManagement;
using MiniErp.Model.Templates;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniErp.Service.DBService.IService.IAssetManagement
{
    public interface IAssetIndexService
    {
        /// <summary>
        /// 增加资产信息
        /// </summary>
        /// <param name="userinfo">需要增加的一条数据</param>
        /// <returns></returns>
        Task<int> AddAssetInfoAsync(AssetInfoEntity userinfo);

        /// <summary>
        /// 查询所有资产信息 //分页
        /// </summary>
        /// <param name="Page">页码</param>
        /// <param name="num">每页条数</param>
        /// <returns></returns>
        Task<List<AssetInfoEntity>> GetAllAssetInfoAsync(int Page, int num);


        /// <summary>
        /// 模糊查询符合条件的数据  //分页
        /// </summary>
        /// <param name="value">模糊查询值</param>
        /// <param name="Page">页码</param>
        /// <param name="num">每页条数</param>
        /// <returns></returns>
        Task<MessageTemplate<List<AssetInfoEntity>>> GetFuzzyAssetInfoAsync(string value, int Page, int num);
    }
}
